home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Know Your Baseball - The Greatest Player Resource
/
Know Your Baseball - Greatest Player.iso
/
Baseball
/
Director
/
KTGCST.CST
/
00088_Script_LoadFirstSnd
< prev
next >
Wrap
Text File
|
1998-09-21
|
2KB
|
60 lines
Global AnnSnd,CoachSnd
-- reloads initsound when background is clicked
on loadFirstSoundsbg
-- find the first sound maker in the internal cast
set start = the number of member "IntroSnd"
if start = -1 then exit -- put in to bail while authoring
set AnnSnd = the name of member (start+1) of castlib "internal"
set CoachSnd = the name of member (start+2) of castlib "internal"
-- remove the next lines after all the sound is in
-- this line bails if no sound files are present
end
-- commented out to prevent scripts errors in incomplete movies
on loadFirstSounds myname
puppetsound 0
updatestage
-- find the first sound maker in the internal cast
set start = the number of member "IntroSnd"
if start = -1 then exit -- put in to bail while authoring
set AnnSnd = the name of member (start+1) of castlib "internal"
set CoachSnd = the name of member (start+2) of castlib "internal"
-- remove the next lines after all the sound is in
-- this line bails if no sound files are present
case myname of
"coach":
set the membernum of sprite 41 = the membernum of sprite 41+1
set the blend of sprite 41 = 100
setat(gbuttonState,41,2)
puppetsound CoachSnd
updatestage
"guide":
set the membernum of sprite 40 = the membernum of sprite 40+1
set the blend of sprite 40 = 100
setat(gbuttonState,40,2)
puppetsound AnnSnd
updatestage
end case
end
on loadFirstSoundst mysprite
if voidp(mysprite) then
set s = the clickon
set mynum = the membernum of sprite s
set mysprite = the name of member mynum of castlib "KTGCST"
end if
set makername = the number of member (mysprite & "_audio")
if makername = -1 then exit -- put in to bail while authoring
set AnnSnd = the name of member (makername+1) of castlib "internal"
set CoachSnd = the name of member (makername+2) of castlib "internal"
if mysprite = "A" or mysprite = "D" then exit -- don't auto play sound if you are in teamplay
set the membernum of sprite 40 = the membernum of sprite 40+1
set the blend of sprite 40 = 100
setat(gbuttonState,40,2)
puppetsound AnnSnd
updatestage
end